//
//  MSNotifacationTableVC.m
//  SocietySale
//
//  Created by Mike on 16/11/18.
//  Copyright © 2016年 Mike. All rights reserved.
//

#import "MSNotifacationTableVC.h"
#import "MSNotifacationViewCell.h"

@interface MSNotifacationTableVC ()

@end

@implementation MSNotifacationTableVC

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    NSString *cellId = @"cellId";
    MSNotifacationViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
    if (!cell) {
        cell = [[MSNotifacationViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:cellId];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    if (indexPath.row == [self.dataArray count]-1) {
        cell.horizonLineView.frame = CGRectMake(0, 69.4, SCREEN_WIDTH, 0.6);
    }
    else{
        cell.horizonLineView.frame = CGRectMake(12, 69.4, SCREEN_WIDTH-24, 0.6);
    }
    cell.model = self.dataArray[indexPath.row];
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 70;
}

@end
